
 if( SERVER ) then

	AddCSLuaFile( "shared.lua" );

end


 

SWEP.PrintName      = "Assassin Cloak"   
SWEP.Slot         = 0;
SWEP.SlotPos            = 3;
SWEP.Description        = "Makes you invisible."
SWEP.Contact            = ""
SWEP.Purpose            = ""
SWEP.Instructions      = "Left Click to become invisible."

 
SWEP.Spawnable      = true --  Change to false to make Admin only.
SWEP.AdminSpawnable  = true
 
SWEP.ViewModel      = "models/weapons/v_c4.mdl"
SWEP.WorldModel   = "models/weapons/w_c4.mdl"
 
SWEP.Primary.Recoil  = 0
SWEP.Primary.ClipSize      = -1
SWEP.Primary.DefaultClip    = 1
SWEP.Primary.Automatic    = false
SWEP.Primary.Delay    = 30
SWEP.Primary.Ammo      = "none"
 
SWEP.Secondary.Recoil      = 0
SWEP.Secondary.ClipSize  = -1
SWEP.Secondary.DefaultClip  = 1
SWEP.Secondary.Automatic    = true
SWEP.Secondary.Delay        = 0.3
SWEP.Secondary.Ammo  = "none"
 

util.PrecacheSound("buttons/button1.wav")
util.PrecacheSound("buttons/combine_button_locked.wav")

function SWEP:PrimaryAttack()
	self.Weapon:SetNextPrimaryFire( CurTime() + 20 + self.Owner:GetNWInt("assassinlvl")*3 )
	self.Owner:EmitSound("buttons/button1.wav", 150, 100)
	self.Owner:ConCommand("dm_cloak")
end

if CLIENT then
	function SWEP:Think()
		Perk.Type = "Cloak"
	end
end
